obj-m += poctest.o

poctest-objs += poctest_main.o       \


KERNELDIR := /home/lixiang/Workspace/qemu/linux-qemu-environmentl/out/linux
CROSS_COMPILE=aarch64-none-linux-gnu-
#KERNELDIR := /home/lingyun/Workspace/linux-qemu/out-mainline/linux
#CROSS_COMPILE=aarch64-linux-gnu-

PWD := $(shell pwd)
all:
	ARCH=arm64 CROSS_COMPILE=$(CROSS_COMPILE) $(MAKE) -C $(KERNELDIR) M=$(PWD) modules

clean:
	rm -rf *.ko *.mod* *.o modules.* Module.symvers
